package org.shoukaiseki.inittable.domain;

/**
 * 限制,外键限制
 */
public abstract class TableConstraintInfo {

    /**
     * 限制名称,可根据改名称判断限制是否存在
     */
    private String constraintName;

    public String getConstraintName() {
        return constraintName;
    }

    public void setConstraintName(String constraintName) {
        this.constraintName = constraintName;
    }

    /**
     * 生成限制sql
     * @param tableName
     * @return
     */
    public abstract String buildAddSql(String tableName);

}
